package zy1208.zy16;

import java.lang.reflect.Method;
import java.util.Scanner;

public class demo {
    public static void main(String[] args) throws Exception {
        Class<?> aClass = Class.forName("zy1208.zy16.A");
        Method m = aClass.getDeclaredMethod("showString",String.class);
        Object o = aClass.newInstance();
        System.out.println("请输入字符串");
        String s = new Scanner(System.in).nextLine();
        m.invoke(o,s);
    }
}
